package com.dangdang.sharding.mapstruct.mapper.transform;
public class CarTransform {

    public String booleanToString(boolean value){
        if(value){
            return "Y";
        }
        return "N";
    }

    public boolean stringToBoolean(String str){
        if ("Y".equals(str)) {
            return true;
        }
        return false;
    }
}